﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using RemoteController;

namespace VisualRemoteController
{
    public class RelaxMacroCommandGetterO : RelaxMacroCommandGetter
    {
        MacroCommand On;
        MacroCommand Off;

        public RelaxMacroCommandGetterO(Light light, Stereo stereo, Hottub hottub, GUICommandDecoratorStrategy[] GS)
            : base(light, stereo, hottub)
        {
            for (int i = 0; i < this.commandsON.Length; i++)
            {
                commandsON[i] = new GUICommandDecorator(commandsON[i], GS[i]);
                commandsOFF[i] = new GUICommandDecorator(commandsOFF[i], GS[i]);
            }

            On = new MacroCommand(commandsON);
            Off = new MacroCommand(commandsOFF);
        }

        public override MacroCommand getOnMacro()
        {
            return On;
        }

        public override MacroCommand getOffMacro()
        {
            return Off;
        }

    }
}
